// src/mock/index.ts
import Mock from "mockjs";
import { homeApi } from "./home";
import { userApi } from "./user";
import { productApi } from "./product";
import { premissionApi } from "./permission";

Mock.mock(/api\/home\/getHomeData/, "get", homeApi.getStatisticalData);
Mock.mock(/api\/user\/getUser/, "get", userApi.getUserList);
Mock.mock(/api\/user\/addUser/, "post", userApi.createUser);
Mock.mock(/api\/user\/editUser/, "post", userApi.updateUser);
Mock.mock(/api\/user\/deleteUser/, "post", userApi.deleteUser);
// 权限数据
Mock.mock(/api\/permission\/getMenu/, "post", premissionApi.getMenu);

// 商品数据
Mock.mock(/api\/product\/getProductList/, "get", productApi.getProductList);
